// src/snake-score/entities/score.entity.ts
import { Entity, PrimaryGeneratedColumn, Column, Index } from 'typeorm';

@Entity()
export class Score {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  username: string;

  @Index()
  @Column()
  score: number;
}
